home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-4.ISO / Files IV / Prog / S / StuLib 2.6.sit / StuLib / Source Code ƒ / Printing ƒ / PrintUtils.c next >
MacBinary  |  1996-11-17  |  3.5 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Nov 17 20:40:39 1996, modified Sun Nov 17 20:40:39 1996, creator 'CWIE', type ASCII, 2941 bytes "PrintUtils.c" , at 0xbfd 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 50 72 69 6e 74 55 | 74 69 6c 73 2e 63 00 00 |..PrintU|tils.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b 7d 00 | 00 01 9a ae b5 6f 17 ae |......}.|.....o..|
|00000060| b5 6f 17 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.o......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a6 e9 00 00 |........|........|
|00000080| 2f 2f 20 46 69 6c 65 20 | 22 50 72 69 6e 74 55 74 |// File |"PrintUt|
|00000090| 69 6c 73 22 20 2d 20 73 | 65 74 20 6f 66 20 72 6f |ils" - s|et of ro|
|000000a0| 75 74 69 6e 65 73 20 74 | 6f 20 68 61 6e 64 6c 65 |utines t|o handle|
|000000b0| 20 6d 61 63 20 70 72 69 | 6e 74 69 6e 67 20 74 6f | mac pri|nting to|
|000000c0| 6f 6c 62 6f 78 0d 2f 2f | 20 a9 31 39 39 36 20 53 |olbox.//| .1996 S|
|000000d0| 74 75 61 72 74 20 53 6e | 61 64 64 6f 6e 0d 0d 23 |tuart Sn|addon..#|
|000000e0| 69 6e 63 6c 75 64 65 20 | 22 50 72 69 6e 74 55 74 |include |"PrintUt|
|000000f0| 69 6c 73 2e 68 22 0d 0d | 54 48 50 72 69 6e 74 20 |ils.h"..|THPrint |
|00000100| 09 74 68 65 50 72 69 6e | 74 52 65 63 3b 0d 54 50 |.thePrin|tRec;.TP|
|00000110| 50 72 50 6f 72 74 09 74 | 68 65 50 72 69 6e 74 50 |PrPort.t|hePrintP|
|00000120| 6f 72 74 3b 0d 73 68 6f | 72 74 20 09 66 69 72 73 |ort;.sho|rt .firs|
|00000130| 74 50 61 67 65 2c 20 6c | 61 73 74 50 61 67 65 3b |tPage, l|astPage;|
|00000140| 0d 42 6f 6f 6c 65 61 6e | 09 76 61 6c 69 64 3b 0d |.Boolean|.valid;.|
|00000150| 0d 76 6f 69 64 20 50 72 | 69 6e 74 65 72 50 61 67 |.void Pr|interPag|
|00000160| 65 53 65 74 75 70 28 76 | 6f 69 64 29 0d 7b 0d 09 |eSetup(v|oid).{..|
|00000170| 50 72 4f 70 65 6e 28 29 | 3b 0d 09 69 66 20 28 74 |PrOpen()|;..if (t|
|00000180| 68 65 50 72 69 6e 74 52 | 65 63 20 3d 3d 20 6e 69 |hePrintR|ec == ni|
|00000190| 6c 29 20 7b 0d 09 09 74 | 68 65 50 72 69 6e 74 52 |l) {...t|hePrintR|
|000001a0| 65 63 20 3d 20 28 54 48 | 50 72 69 6e 74 29 4e 65 |ec = (TH|Print)Ne|
|000001b0| 77 48 61 6e 64 6c 65 28 | 73 69 7a 65 6f 66 28 54 |wHandle(|sizeof(T|
|000001c0| 50 72 69 6e 74 29 29 3b | 0d 09 09 50 72 69 6e 74 |Print));|...Print|
|000001d0| 44 65 66 61 75 6c 74 28 | 74 68 65 50 72 69 6e 74 |Default(|thePrint|
|000001e0| 52 65 63 29 3b 7d 0d 09 | 50 72 53 74 6c 44 69 61 |Rec);}..|PrStlDia|
|000001f0| 6c 6f 67 28 74 68 65 50 | 72 69 6e 74 52 65 63 29 |log(theP|rintRec)|
|00000200| 3b 0d 20 09 50 72 43 6c | 6f 73 65 28 29 3b 0d 7d |;. .PrCl|ose();.}|
|00000210| 0d 0d 42 6f 6f 6c 65 61 | 6e 20 50 72 69 6e 74 65 |..Boolea|n Printe|
|00000220| 72 50 72 69 6e 74 53 74 | 61 72 74 28 76 6f 69 64 |rPrintSt|art(void|
|00000230| 29 0d 7b 0d 09 20 50 72 | 4f 70 65 6e 28 29 3b 0d |).{.. Pr|Open();.|
|00000240| 20 09 20 69 66 20 28 74 | 68 65 50 72 69 6e 74 52 | . if (t|hePrintR|
|00000250| 65 63 20 3d 3d 20 6e 69 | 6c 29 20 7b 0d 20 20 20 |ec == ni|l) {. |
|00000260| 09 09 74 68 65 50 72 69 | 6e 74 52 65 63 20 3d 20 |..thePri|ntRec = |
|00000270| 28 54 48 50 72 69 6e 74 | 29 4e 65 77 48 61 6e 64 |(THPrint|)NewHand|
|00000280| 6c 65 28 73 69 7a 65 6f | 66 28 54 50 72 69 6e 74 |le(sizeo|f(TPrint|
|00000290| 29 29 3b 0d 20 20 20 20 | 09 09 50 72 69 6e 74 44 |));. |..PrintD|
|000002a0| 65 66 61 75 6c 74 28 74 | 68 65 50 72 69 6e 74 52 |efault(t|hePrintR|
|000002b0| 65 63 29 3b 7d 0d 09 76 | 61 6c 69 64 20 3d 20 50 |ec);}..v|alid = P|
|000002c0| 72 4a 6f 62 44 69 61 6c | 6f 67 28 74 68 65 50 72 |rJobDial|og(thePr|
|000002d0| 69 6e 74 52 65 63 29 3b | 0d 09 69 66 20 28 21 76 |intRec);|..if (!v|
|000002e0| 61 6c 69 64 29 0d 09 09 | 50 72 43 6c 6f 73 65 28 |alid)...|PrClose(|
|000002f0| 29 3b 0d 20 20 09 66 69 | 72 73 74 50 61 67 65 20 |);. .fi|rstPage |
|00000300| 3d 20 28 2a 2a 74 68 65 | 50 72 69 6e 74 52 65 63 |= (**the|PrintRec|
|00000310| 29 2e 70 72 4a 6f 62 2e | 69 46 73 74 50 61 67 65 |).prJob.|iFstPage|
|00000320| 3b 0d 20 20 09 6c 61 73 | 74 50 61 67 65 20 3d 20 |;. .las|tPage = |
|00000330| 28 2a 2a 74 68 65 50 72 | 69 6e 74 52 65 63 29 2e |(**thePr|intRec).|
|00000340| 70 72 4a 6f 62 2e 69 4c | 73 74 50 61 67 65 3b 0d |prJob.iL|stPage;.|
|00000350| 20 20 09 69 66 20 28 66 | 69 72 73 74 50 61 67 65 | .if (f|irstPage|
|00000360| 20 3c 20 31 29 0d 20 20 | 20 09 09 66 69 72 73 74 | < 1). | ..first|
|00000370| 50 61 67 65 20 3d 20 31 | 3b 0d 20 20 09 69 66 20 |Page = 1|;. .if |
|00000380| 28 6c 61 73 74 50 61 67 | 65 20 3c 20 66 69 72 73 |(lastPag|e < firs|
|00000390| 74 50 61 67 65 29 0d 20 | 20 20 09 09 6c 61 73 74 |tPage). | ..last|
|000003a0| 50 61 67 65 20 3d 20 39 | 39 39 39 3b 0d 20 20 09 |Page = 9|999;. .|
|000003b0| 28 2a 2a 74 68 65 50 72 | 69 6e 74 52 65 63 29 2e |(**thePr|intRec).|
|000003c0| 70 72 4a 6f 62 2e 69 46 | 73 74 50 61 67 65 20 3d |prJob.iF|stPage =|
|000003d0| 20 31 3b 0d 20 20 09 28 | 2a 2a 74 68 65 50 72 69 | 1;. .(|**thePri|
|000003e0| 6e 74 52 65 63 29 2e 70 | 72 4a 6f 62 2e 69 4c 73 |ntRec).p|rJob.iLs|
|000003f0| 74 50 61 67 65 20 3d 20 | 39 39 39 39 3b 0d 20 20 |tPage = |9999;. |
|00000400| 09 72 65 74 75 72 6e 20 | 76 61 6c 69 64 3b 0d 7d |.return |valid;.}|
|00000410| 0d 0d 76 6f 69 64 20 50 | 72 69 6e 74 65 72 50 72 |..void P|rinterPr|
|00000420| 69 6e 74 45 6e 64 28 76 | 6f 69 64 29 0d 7b 0d 09 |intEnd(v|oid).{..|
|00000430| 69 66 20 28 76 61 6c 69 | 64 29 0d 09 09 50 72 43 |if (vali|d)...PrC|
|00000440| 6c 6f 73 65 28 29 3b 0d | 7d 0d 0d 73 68 6f 72 74 |lose();.|}..short|
|00000450| 20 50 72 69 6e 74 65 72 | 47 65 74 46 69 72 73 74 | Printer|GetFirst|
|00000460| 50 61 67 65 28 76 6f 69 | 64 29 0d 7b 0d 09 72 65 |Page(voi|d).{..re|
|00000470| 74 75 72 6e 20 66 69 72 | 73 74 50 61 67 65 3b 0d |turn fir|stPage;.|
|00000480| 7d 0d 0d 73 68 6f 72 74 | 20 50 72 69 6e 74 65 72 |}..short| Printer|
|00000490| 47 65 74 4c 61 73 74 50 | 61 67 65 28 76 6f 69 64 |GetLastP|age(void|
|000004a0| 29 0d 7b 0d 09 72 65 74 | 75 72 6e 20 6c 61 73 74 |).{..ret|urn last|
|000004b0| 50 61 67 65 3b 0d 7d 0d | 0d 76 6f 69 64 20 50 72 |Page;.}.|.void Pr|
|000004c0| 69 6e 74 65 72 53 65 74 | 4c 61 73 74 50 61 67 65 |interSet|LastPage|
|000004d0| 20 28 73 68 6f 72 74 20 | 74 68 65 50 61 67 65 29 | (short |thePage)|
|000004e0| 0d 7b 0d 09 28 2a 2a 74 | 68 65 50 72 69 6e 74 52 |.{..(**t|hePrintR|
|000004f0| 65 63 29 2e 70 72 4a 6f | 62 2e 69 4c 73 74 50 61 |ec).prJo|b.iLstPa|
|00000500| 67 65 20 3d 20 74 68 65 | 50 61 67 65 3b 0d 20 20 |ge = the|Page;. |
|00000510| 09 6c 61 73 74 50 61 67 | 65 20 3d 20 74 68 65 50 |.lastPag|e = theP|
|00000520| 61 67 65 3b 0d 7d 0d 0d | 73 68 6f 72 74 20 50 72 |age;.}..|short Pr|
|00000530| 69 6e 74 65 72 47 65 74 | 43 6f 70 69 65 73 28 76 |interGet|Copies(v|
|00000540| 6f 69 64 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 28 |oid).{..|return (|
|00000550| 2a 2a 74 68 65 50 72 69 | 6e 74 52 65 63 29 2e 70 |**thePri|ntRec).p|
|00000560| 72 4a 6f 62 2e 69 43 6f | 70 69 65 73 3b 0d 7d 0d |rJob.iCo|pies;.}.|
|00000570| 0d 76 6f 69 64 20 50 72 | 69 6e 74 65 72 4f 70 65 |.void Pr|interOpe|
|00000580| 6e 44 6f 63 28 76 6f 69 | 64 29 0d 7b 0d 20 20 09 |nDoc(voi|d).{. .|
|00000590| 74 68 65 50 72 69 6e 74 | 50 6f 72 74 20 3d 20 50 |thePrint|Port = P|
|000005a0| 72 4f 70 65 6e 44 6f 63 | 28 74 68 65 50 72 69 6e |rOpenDoc|(thePrin|
|000005b0| 74 52 65 63 2c 20 6e 69 | 6c 2c 20 6e 69 6c 29 3b |tRec, ni|l, nil);|
|000005c0| 0d 7d 0d 0d 76 6f 69 64 | 20 50 72 69 6e 74 65 72 |.}..void| Printer|
|000005d0| 4f 70 65 6e 50 61 67 65 | 28 76 6f 69 64 29 0d 7b |OpenPage|(void).{|
|000005e0| 0d 09 50 72 4f 70 65 6e | 50 61 67 65 28 74 68 65 |..PrOpen|Page(the|
|000005f0| 50 72 69 6e 74 50 6f 72 | 74 2c 20 6e 69 6c 29 3b |PrintPor|t, nil);|
|00000600| 0d 7d 0d 0d 76 6f 69 64 | 20 50 72 69 6e 74 65 72 |.}..void| Printer|
|00000610| 43 6c 6f 73 65 50 61 67 | 65 28 76 6f 69 64 29 0d |ClosePag|e(void).|
|00000620| 7b 0d 09 50 72 43 6c 6f | 73 65 50 61 67 65 28 74 |{..PrClo|sePage(t|
|00000630| 68 65 50 72 69 6e 74 50 | 6f 72 74 29 3b 0d 7d 0d |hePrintP|ort);.}.|
|00000640| 0d 76 6f 69 64 20 50 72 | 69 6e 74 65 72 43 6c 6f |.void Pr|interClo|
|00000650| 73 65 44 6f 63 28 76 6f | 69 64 29 0d 7b 0d 20 09 |seDoc(vo|id).{. .|
|00000660| 54 50 72 53 74 61 74 75 | 73 20 74 68 65 53 74 61 |TPrStatu|s theSta|
|00000670| 74 75 73 3b 0d 09 0d 09 | 50 72 43 6c 6f 73 65 44 |tus;....|PrCloseD|
|00000680| 6f 63 28 74 68 65 50 72 | 69 6e 74 50 6f 72 74 29 |oc(thePr|intPort)|
|00000690| 3b 0d 09 69 66 20 28 28 | 2a 2a 74 68 65 50 72 69 |;..if ((|**thePri|
|000006a0| 6e 74 52 65 63 29 2e 70 | 72 4a 6f 62 2e 62 4a 44 |ntRec).p|rJob.bJD|
|000006b0| 6f 63 4c 6f 6f 70 20 3d | 3d 20 62 53 70 6f 6f 6c |ocLoop =|= bSpool|
|000006c0| 4c 6f 6f 70 29 0d 09 09 | 50 72 50 69 63 46 69 6c |Loop)...|PrPicFil|
|000006d0| 65 28 74 68 65 50 72 69 | 6e 74 52 65 63 2c 20 6e |e(thePri|ntRec, n|
|000006e0| 69 6c 2c 20 6e 69 6c 2c | 20 6e 69 6c 2c 20 26 74 |il, nil,| nil, &t|
|000006f0| 68 65 53 74 61 74 75 73 | 29 3b 0d 7d 0d 0d 52 65 |heStatus|);.}..Re|
|00000700| 63 74 20 50 72 69 6e 74 | 65 72 47 65 74 50 6f 72 |ct Print|erGetPor|
|00000710| 74 52 65 63 74 28 76 6f | 69 64 29 0d 7b 0d 09 52 |tRect(vo|id).{..R|
|00000720| 65 63 74 20 09 09 74 68 | 65 52 65 63 74 3b 0d 0d |ect ..th|eRect;..|
|00000730| 09 74 68 65 52 65 63 74 | 20 3d 20 74 68 65 50 72 |.theRect| = thePr|
|00000740| 69 6e 74 50 6f 72 74 2d | 3e 67 50 6f 72 74 2e 70 |intPort-|>gPort.p|
|00000750| 6f 72 74 52 65 63 74 3b | 0d 09 74 68 65 52 65 63 |ortRect;|..theRec|
|00000760| 74 2e 74 6f 70 20 2b 3d | 20 32 32 3b 0d 09 74 68 |t.top +=| 22;..th|
|00000770| 65 52 65 63 74 2e 62 6f | 74 74 6f 6d 20 2d 3d 20 |eRect.bo|ttom -= |
|00000780| 32 32 3b 0d 09 72 65 74 | 75 72 6e 20 74 68 65 52 |22;..ret|urn theR|
|00000790| 65 63 74 3b 0d 7d 0d 0d | 47 72 61 66 50 74 72 20 |ect;.}..|GrafPtr |
|000007a0| 50 72 69 6e 74 65 72 47 | 65 74 50 6f 72 74 28 76 |PrinterG|etPort(v|
|000007b0| 6f 69 64 29 0d 7b 0d 20 | 20 72 65 74 75 72 6e 20 |oid).{. | return |
|000007c0| 28 47 72 61 66 50 74 72 | 29 28 26 28 74 68 65 50 |(GrafPtr|)(&(theP|
|000007d0| 72 69 6e 74 50 6f 72 74 | 2d 3e 67 50 6f 72 74 29 |rintPort|->gPort)|
|000007e0| 29 3b 0d 7d 0d 0d 76 6f | 69 64 20 50 72 69 6e 74 |);.}..vo|id Print|
|000007f0| 65 72 50 72 69 6e 74 48 | 65 61 64 65 72 20 28 53 |erPrintH|eader (S|
|00000800| 74 72 32 35 35 20 74 68 | 65 54 69 74 6c 65 2c 20 |tr255 th|eTitle, |
|00000810| 73 68 6f 72 74 20 70 61 | 67 65 6e 75 6d 29 0d 7b |short pa|genum).{|
|00000820| 0d 09 52 65 63 74 09 09 | 74 68 65 52 65 63 74 3b |..Rect..|theRect;|
|00000830| 0d 09 53 74 72 32 35 35 | 09 74 69 6d 65 53 74 72 |..Str255|.timeStr|
|00000840| 2c 20 64 61 74 65 53 74 | 72 2c 20 74 68 65 53 74 |, dateSt|r, theSt|
|00000850| 72 69 6e 67 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |ring;..u|nsigned |
|00000860| 6c 6f 6e 67 09 72 61 77 | 53 65 63 73 3b 0d 0d 09 |long.raw|Secs;...|
|00000870| 74 68 65 52 65 63 74 20 | 3d 20 50 72 69 6e 74 65 |theRect |= Printe|
|00000880| 72 47 65 74 50 6f 72 74 | 52 65 63 74 28 29 3b 0d |rGetPort|Rect();.|
|00000890| 20 20 09 4d 6f 76 65 54 | 6f 28 74 68 65 52 65 63 | .MoveT|o(theRec|
|000008a0| 74 2e 6c 65 66 74 2c 20 | 74 68 65 52 65 63 74 2e |t.left, |theRect.|
|000008b0| 74 6f 70 20 2d 20 32 29 | 3b 0d 20 20 09 4c 69 6e |top - 2)|;. .Lin|
|000008c0| 65 54 6f 28 74 68 65 52 | 65 63 74 2e 72 69 67 68 |eTo(theR|ect.righ|
|000008d0| 74 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 20 2d |t, theRe|ct.top -|
|000008e0| 20 32 29 3b 0d 20 20 09 | 4d 6f 76 65 54 6f 28 74 | 2);. .|MoveTo(t|
|000008f0| 68 65 52 65 63 74 2e 6c | 65 66 74 2c 20 74 68 65 |heRect.l|eft, the|
|00000900| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 20 2b 20 32 29 |Rect.bot|tom + 2)|
|00000910| 3b 0d 20 20 09 4c 69 6e | 65 54 6f 28 74 68 65 52 |;. .Lin|eTo(theR|
|00000920| 65 63 74 2e 72 69 67 68 | 74 2c 20 74 68 65 52 65 |ect.righ|t, theRe|
|00000930| 63 74 2e 62 6f 74 74 6f | 6d 20 2b 20 32 29 3b 0d |ct.botto|m + 2);.|
|00000940| 20 20 09 54 65 78 74 46 | 6f 6e 74 28 31 29 3b 0d | .TextF|ont(1);.|
|00000950| 20 20 09 54 65 78 74 53 | 69 7a 65 28 31 32 29 3b | .TextS|ize(12);|
|00000960| 0d 20 20 09 4d 6f 76 65 | 54 6f 28 30 2c 20 31 36 |. .Move|To(0, 16|
|00000970| 29 3b 0d 20 20 09 44 72 | 61 77 53 74 72 69 6e 67 |);. .Dr|awString|
|00000980| 28 74 68 65 54 69 74 6c | 65 29 3b 0d 20 20 09 47 |(theTitl|e);. .G|
|00000990| 65 74 44 61 74 65 54 69 | 6d 65 28 26 72 61 77 53 |etDateTi|me(&rawS|
|000009a0| 65 63 73 29 3b 0d 09 49 | 55 44 61 74 65 53 74 72 |ecs);..I|UDateStr|
|000009b0| 69 6e 67 28 72 61 77 53 | 65 63 73 2c 20 6c 6f 6e |ing(rawS|ecs, lon|
|000009c0| 67 44 61 74 65 2c 20 64 | 61 74 65 53 74 72 29 3b |gDate, d|ateStr);|
|000009d0| 0d 09 49 55 54 69 6d 65 | 53 74 72 69 6e 67 28 72 |..IUTime|String(r|
|000009e0| 61 77 53 65 63 73 2c 20 | 74 72 75 65 2c 20 74 69 |awSecs, |true, ti|
|000009f0| 6d 65 53 74 72 29 3b 0d | 09 42 6c 6f 63 6b 4d 6f |meStr);.|.BlockMo|
|00000a00| 76 65 28 74 69 6d 65 53 | 74 72 2c 20 74 68 65 53 |ve(timeS|tr, theS|
|00000a10| 74 72 69 6e 67 2c 20 74 | 69 6d 65 53 74 72 5b 30 |tring, t|imeStr[0|
|00000a20| 5d 2b 31 29 3b 0d 09 42 | 6c 6f 63 6b 4d 6f 76 65 |]+1);..B|lockMove|
|00000a30| 28 22 20 6f 6e 20 22 2c | 20 74 68 65 53 74 72 69 |(" on ",| theStri|
|00000a40| 6e 67 20 2b 20 74 69 6d | 65 53 74 72 5b 30 5d 2b |ng + tim|eStr[0]+|
|00000a50| 31 2c 20 34 29 3b 0d 09 | 42 6c 6f 63 6b 4d 6f 76 |1, 4);..|BlockMov|
|00000a60| 65 28 64 61 74 65 53 74 | 72 2b 31 2c 20 74 68 65 |e(dateSt|r+1, the|
|00000a70| 53 74 72 69 6e 67 20 2b | 20 74 69 6d 65 53 74 72 |String +| timeStr|
|00000a80| 5b 30 5d 2b 35 2c 20 64 | 61 74 65 53 74 72 5b 30 |[0]+5, d|ateStr[0|
|00000a90| 5d 29 3b 0d 09 74 68 65 | 53 74 72 69 6e 67 5b 30 |]);..the|String[0|
|00000aa0| 5d 20 3d 20 64 61 74 65 | 53 74 72 5b 30 5d 2b 74 |] = date|Str[0]+t|
|00000ab0| 69 6d 65 53 74 72 5b 30 | 5d 2b 34 3b 0d 09 4d 6f |imeStr[0|]+4;..Mo|
|00000ac0| 76 65 54 6f 28 74 68 65 | 52 65 63 74 2e 72 69 67 |veTo(the|Rect.rig|
|00000ad0| 68 74 20 2d 20 53 74 72 | 69 6e 67 57 69 64 74 68 |ht - Str|ingWidth|
|00000ae0| 28 74 68 65 53 74 72 69 | 6e 67 29 2c 20 31 36 29 |(theStri|ng), 16)|
|00000af0| 3b 0d 09 44 72 61 77 53 | 74 72 69 6e 67 28 74 68 |;..DrawS|tring(th|
|00000b00| 65 53 74 72 69 6e 67 29 | 3b 0d 09 42 6c 6f 63 6b |eString)|;..Block|
|00000b10| 4d 6f 76 65 28 22 5c 70 | 50 61 67 65 3a 20 30 30 |Move("\p|Page: 00|
|00000b20| 30 30 22 2c 20 74 68 65 | 53 74 72 69 6e 67 2c 20 |00", the|String, |
|00000b30| 31 30 29 3b 0d 09 4e 75 | 6d 54 6f 53 74 72 69 6e |10);..Nu|mToStrin|
|00000b40| 67 28 28 6c 6f 6e 67 29 | 70 61 67 65 6e 75 6d 2c |g((long)|pagenum,|
|00000b50| 20 74 69 6d 65 53 74 72 | 29 3b 0d 09 42 6c 6f 63 | timeStr|);..Bloc|
|00000b60| 6b 4d 6f 76 65 28 74 69 | 6d 65 53 74 72 20 2b 20 |kMove(ti|meStr + |
|00000b70| 31 2c 20 74 68 65 53 74 | 72 69 6e 67 20 2b 20 31 |1, theSt|ring + 1|
|00000b80| 31 20 2d 20 74 69 6d 65 | 53 74 72 5b 30 5d 2c 20 |1 - time|Str[0], |
|00000b90| 74 69 6d 65 53 74 72 5b | 30 5d 29 3b 0d 09 4d 6f |timeStr[|0]);..Mo|
|00000ba0| 76 65 54 6f 28 74 68 65 | 52 65 63 74 2e 72 69 67 |veTo(the|Rect.rig|
|00000bb0| 68 74 20 2d 20 53 74 72 | 69 6e 67 57 69 64 74 68 |ht - Str|ingWidth|
|00000bc0| 28 74 68 65 53 74 72 69 | 6e 67 29 2c 20 74 68 65 |(theStri|ng), the|
|00000bd0| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 20 2b 20 31 36 |Rect.bot|tom + 16|
|00000be0| 29 3b 0d 09 44 72 61 77 | 53 74 72 69 6e 67 28 74 |);..Draw|String(t|
|00000bf0| 68 65 53 74 72 69 6e 67 | 29 3b 0d 7d 0d 00 00 00 |heString|);.}....|
|00000c00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000c10| 00 f6 2b 2b 2b ff ff ff | ff ff ff ff ff ff ff ff |..+++...|........|
|00000c20| ff 2b 2b 2b f7 f7 ff 00 | 00 00 00 00 00 00 00 ff |.+++....|........|
|00000c30| 0c 50 72 69 6e 74 55 74 | 69 6c 73 2e 63 d8 02 00 |.PrintUt|ils.c...|
|00000c40| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 8c |..TEXTCW|IE......|
|00000c50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 8c |..TEXTCW|IE......|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 ae 3b 5e b1 00 00 | 0b 7d 00 00 01 9a 00 00 |...;^...|.}......|
|00000c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 03 | 00 04 00 58 00 04 01 cd |........|...X....|
|00000d30| 02 63 00 58 00 04 01 cd | 02 63 af 61 8b 32 00 00 |.c.X....|.c.a.2..|
|00000d40| 08 c3 00 00 08 cb 00 00 | 07 a1 01 00 00 00 00 04 |........|........|
|00000d50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000d60| 00 00 00 46 00 6e 11 d4 | 1d c0 00 00 00 1c 00 46 |...F.n..|.......F|
|00000d70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000d80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000d90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+